<template>
	<view>
		<view class="box">
			<view class="top">
				<view class="middle">
					<view class="title">2021期末考试-英语成绩</view>
					<view class="grade">89
					<view class="grade_">分</view>
					</view>
					<view class="list">
					<view class="same">学生姓名：
					<view class="name">张三</view>
					</view>
					<view class="line"></view>
					<view class="same">班级名次：
					<view class="name">24</view>
					</view>
					<view class="line"></view>
					<view class="same">任课老师：
					<view class="name">刘老师</view>
					</view>
					<view class="line"></view>
					<view class="same">考试时间：
					<view class="name">2021-04-15</view>
					</view>
					</view>
					<button class="share" open-type="share">我要分享</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onShareAppMessage(res) {
		    if (res.from === 'button') {// 来自页面内分享按钮
		      console.log(res.target)
		    }
		    return {
		      title: '我的成绩',
		      path: '/pages/test/test?id=123'
		    }
		},
		methods: {
			
		}
	}
</script>

<style>
	.box{
		display: flex;
	}
	.top{
		
		height: 250rpx;
		width: 100%;
		background-color: #458efd;
	}
	.middle{
		/* width: 650rpx; */
		height: 800rpx;
		margin-top: 60rpx;
		margin-left: 40rpx;
		margin-right: 40rpx;
		border-radius: 20rpx;
		text-align: center;
		background-color: #ffffff;
		box-shadow: #fbfbfb 2rpx;
	}
	.title{
		font-size: 35rpx;
		padding-top: 25rpx;
		
	}
	.grade{
		display: flex;
		flex-direction: row;
		padding-top: 30rpx;
		color: #d04e4c;
		font-size: 70rpx;
		justify-content: center;
		align-items: baseline;
	}
	.grade_{
		font-size: 24rpx;
		
	
	}
	.list{
		display: flex;
		flex-direction: column;
	}
	.same{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		color: #737373;
		padding-top: 40rpx;
		margin-left: 30rpx;
		font-size: 30rpx;
	}
	.name{
		margin-right: 30rpx;
		
	}
	.rank{
		
	}
	.teacher{
		
	}
	.share{
		margin-top: 110rpx;
		margin-left: 25rpx;
		text-align: center;
		line-height: 80rpx;
		color: #f4fffc;
		width: 605rpx;
		height: 80rpx;
		background-color: #2e84ff;
		border-radius: 50rpx;
		
		
	}
	.line{
		border-bottom: #f6f6f6 1rpx solid;
		margin-top: 20rpx;
 		width: 92%;
		margin-left: 25rpx;
	}
	


</style>
